package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: Anuja Kelkar
 * Date: 7/4/13
 * Time: 1:42 PM
 * To change this template use File | Settings | File Templates.
 */
public class Movie {
    private String movieName;
    private int yrOfRelease;
    private String director;
    private String rating;

   public Movie(String movName, int yr,String dir, String rating)
   {
       this.movieName=movName;
       this.yrOfRelease=yr;
       this.director=dir;
       this.rating=rating;
   }

   public Movie(int n)
   {
       this.movieName="";
       this.yrOfRelease=0;
       this.director="";
       this.rating="";
   }

   //function to retrieve name of movie
   String getMovname(int i)
   {
      String [] movName = {"The Godfather","The Forrest Gump","The Shawshank Redemption","The Green Mile",
       "Avatar","The Pursuit of Happyness","Million Dollar Baby","Cast Away","A Beautiful Mind",
       "Life of Pi","Inception","Pulp Fiction","Gladiator","Schindler's List","The Curious Case of Benjamin Button"};
      return(movName[i]);
   }

    //function to retrieve year of release of movie
   int getYr(int i)
   {
       int [] yr={1972,1994,1994,1999,2009,2006,2004,2000,2001,2012,2010,1994,2000,1993,2008};
          return(yr[i]);
   }

    //function to retrieve name of director of movie
   String getDir(int i)
   {
       String [] dir={"Francis Ford Coppola","Robert Zemeckis","Frank Darabont","Frank Darabont","James Cameron",
        "Gabriele Muccino","Clint Eastwood","Robert Zemeckis","Ron Howard","Ang Lee","Christopher Nolan",
        "Quentin Tarantino","Ridley Scott","Steven Spielberg","David Fincher"};
          return(dir[i]);
   }

    //function to retrieve rating of movie
   String getRating(int i)
   {
       String [] rating ={"9","8","N/A","7","9","N/A","8","9","9","8","N/A","N/A","8","9","7"};
          return(rating[i]);
   }
}